package homework4;

public class SeafoodPizza extends pizza{

	public SeafoodPizza() {
		
	}

	
	public SeafoodPizza(String name, double price, int size,String ingredient) {
		super();
		
		this.setIngredient(ingredient);
	}



	//配料
	private String ingredient;
	

	public String getIngredient() {
		return ingredient;
	}


	public void setIngredient(String ingredient) {
		this.ingredient = ingredient;
	}


	@Override
	public void make() {
		System.out.println("名称：" + this.getName());
		System.out.println("价格：" + this.getPrice() + "元");
		System.out.println("大小：" + this.getSize() + "寸");
		System.out.println("配料：" + this.getIngredient());
	}


}
